package com.smedi.ismedi.constructionproject.core.port.adapter.service;

import com.smedi.ismedi.constructionproject.core.domain.aggregatemodel.Person;
import com.smedi.ismedi.constructionproject.core.domain.dto.PersonQuery;
import com.smedi.ismedi.personnel.api.dto.response.PersonSimpleResponse;
import com.smedi.ismedi.personnel.api.dto.response.resp.PersonResp;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-10 20:45
 */
public interface PersonnelRemoteApiService {
    Boolean checkPersonIsAvailable(Long personId);

    Boolean checkPersonIsInternal(Long personId);

    List<Long> getPersonIdsByLastNameAndUserNameAndEmployeeNumAndMobile(String lastName, String userName, String employeeNum, String mobile);

    List<PersonSimpleResponse> getPersonSimpleInfoByPersonIds(List<Long> personIds);
    /**
     * 人员 获取 列表
     *
     * @param personQuery 人员查询
     * @return Person
     */
    List<Person> getPersonList(PersonQuery personQuery);
}
